package com.aspose.cells;

class zou {
   private String n;
   String a;
   String b;
   String c;
   boolean d = true;
   boolean e = true;
   boolean f = false;
   boolean g = false;
   double h = -1.0D;
   double i = -1.0D;
   double j = -1.0D;
   double k = -1.0D;
   double l = -1.0D;
   double m = -1.0D;
   private static final com.aspose.cells.b.c.a.za o = new com.aspose.cells.b.c.a.za(new String[]{"LH", "CH", "RH", "LHEVEN", "CHEVEN", "RHEVEN", "LHFIRST", "CHFIRST", "RHFIRST", "LF", "CF", "RF", "LFEVEN", "CFEVEN", "RFEVEN", "LFFIRST", "CFFIRST", "RFFIRST", "width", "height"});

   String a() {
      return this.n;
   }

   void a(String var1) {
      switch(o.a(var1)) {
      case 0:
      case 1:
      case 2:
      case 3:
      case 4:
      case 5:
      case 6:
      case 7:
      case 8:
      case 9:
      case 10:
      case 11:
      case 12:
      case 13:
      case 14:
      case 15:
      case 16:
      case 17:
         this.n = var1;
         return;
      default:
         throw new CellsException(6, "Invalid sectionId of Header Footer image");
      }
   }

   void a(Picture var1, int var2) {
      if (this.b != null) {
         a(this.b, var1, var2);
      }

      if (this.i > 0.0D) {
         var1.getFormatPicture().setBottomCrop(this.i);
      }

      if (this.j > 0.0D) {
         var1.getFormatPicture().setLeftCrop(this.j);
      }

      if (this.k > 0.0D) {
         var1.getFormatPicture().setRightCrop(this.k);
      }

      if (this.h > 0.0D) {
         var1.getFormatPicture().setTopCrop(this.h);
      }

   }

   static void a(String var0, Shape var1, int var2) {
      String[] var3 = com.aspose.cells.b.a.zv.d(var0, ';');

      for(int var4 = 0; var4 < var3.length; ++var4) {
         String[] var5 = com.aspose.cells.b.a.zv.d(var3[var4], ':');
         if (var5.length == 2) {
            switch(o.a(var5[0].trim())) {
            case 18:
               var1.setWidthInch(zajs.a(var5[1], "in", var2));
               break;
            case 19:
               var1.setHeightInch(zajs.a(var5[1], "in", var2));
            }
         }
      }

   }
}
